#ifndef _MYLOG_H_
#define _MYLOG_H_

#define LV_FATAL	0
#define LV_ERROR	1
#define LV_LOG		2
#define LV_DEBUG	3

#define MY_LOG_LEVEL		LV_ERROR
//#define MY_LOG_LEVEL		LV_LOG
//#define MY_LOG_LEVEL		LV_DEBUG
#define MY_LOG_PATH		"/tmp/seg.log"

#include <stdio.h>
extern FILE * lfp;

int logon();
int logoff();
int logit(unsigned char level, const char *fmt, ...);

#endif
